package com.WISSC.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 授权机构和图片关联表
 * </p>
 *
 * @author 张凯
 * @since 2019-05-08
 */
@ApiModel(value="AuthorizationImage对象", description="授权机构和图片关联表")
public class AuthorizationImage extends Model<AuthorizationImage> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "授权机构关联id")
    @TableField("grant_id")
    private Long grantId;

    @ApiModelProperty(value = "机构照片")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getGrantId() {
        return grantId;
    }

    public void setGrantId(Long grantId) {
        this.grantId = grantId;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AuthorizationImage{" +
        "id=" + id +
        ", grantId=" + grantId +
        ", url=" + url +
        ", createTime=" + createTime +
        "}";
    }
}
